﻿//click a specifed spot 
if (playerStatus.inQueue == true):
	keyFunc.SendKey(Keys.Space,50)

if (playerStatus.inQueue == false) & (playerStatus.Darnassus == true):
	keyFunc.FaceDirection(0)
	keyFunc.Wait(1000) //pause for 1 second
	keyFunc.SendKeyHover( 50)
	keyFunc.Wait(1000) //pause for 1 second
	keyFunc.MouseClick(470,  425)
	keyFunc.Wait(1000) //pause for 1 second
	keyFunc.MouseClick(520,  380)
	keyFunc.SendKey(Keys.Space,50)
	
if (playerStatus.inQueue == false) & (playerStatus.Stormwind == true):
	keyFunc.FaceDirection(0)
	keyFunc.Wait(1000) //pause for 1 second
	keyFunc.SendKeyHover( 50)
	keyFunc.Wait(1000) //pause for 1 second
	keyFunc.MouseClick(470,  425)
	keyFunc.Wait(1000) //pause for 1 second
	keyFunc.MouseClick(520,  380)
	keyFunc.Wait(1000) //pause for 1 second
	keyFunc.MouseClick(520,  300)
	keyFunc.SendKey(Keys.Space,50)
	
if (playerStatus.inQueue == false) & (playerStatus.SilverMoon == true):
	//wsg start x:9605 y:3809
	keyFunc.SendKeyHover( 50)
	keyFunc.Wait(1000) //pause for 1 second
	keyFunc.SendKeyHover( 50)

	if (playerStatus.GotoEOS == true):
		keyFunc.PlayRunToCoords(9644, 3813, 1)
		keyFunc.FaceDirection(136)	
	if (playerStatus.GotoWSG == true):
		keyFunc.PlayRunToCoords(9605, 3809, 1)
		keyFunc.FaceDirection(188)	
	if (playerStatus.GotoAV == true):
		keyFunc.PlayRunToCoords(9690, 3773, 1)
		keyFunc.FaceDirection(61)		
	if (playerStatus.GotoAB == true):
		keyFunc.PlayRunToCoords(9611, 3699, 1)
		keyFunc.FaceDirection(6)	
		
	keyFunc.SendKey(Keys.Oem6,50)
	keyFunc.Wait(500) //pause for 1 second
	keyFunc.MouseClick(500,  255)
	
	keyFunc.SendKey(Keys.Oem6,50)
	keyFunc.Wait(500) //pause for 1 second
	keyFunc.MouseClick(500,  250) 
	
	keyFunc.SendKey(Keys.Oem6,50)
	keyFunc.Wait(500) //pause for 1 second
	keyFunc.MouseClick(500,  245) 
		
	keyFunc.SendKey(Keys.Oem6,50)
	keyFunc.Wait(500) //pause for 1 second
	keyFunc.MouseClick(500,  240) 
		
	keyFunc.SendKey(Keys.Oem6,50)
	keyFunc.Wait(500) //pause for 1 second
	keyFunc.MouseClick(500,  235) 
		
	keyFunc.SendKey(Keys.Oem6,50)
	keyFunc.Wait(500) //pause for 1 second
	keyFunc.MouseClick(500,  230) 
	
if (playerStatus.inQueue == false):
	keyFunc.SendKey(Keys.Space,50)


   
